/* user-purchase/2.0.0 checkout-floatbar.js Date:2016-02-25 09:12:49 */
var isSubmitPlaceholder = "1";
$("#submitButtonABTest").val() && (isSubmitPlaceholder = $("#submitButtonABTest").val()), "1" == isSubmitPlaceholder && seajs.use(["jdf/1.0.0/ui/placeholder/1.0.0/placeholder"], function () {
    function b() {
        var b; {
            var c = $(window).height(),
                e = ($(window).width(), $(".ui-ceilinglamp").outerHeight()),
                f = $("#checkout-floatbar").offset().top + e;
            6 == $.browser.version
        }
        $(window).scroll(function () {
            f = $("#checkout-floatbar").offset().top + e;
            var a = $(document).scrollTop();
            f > c + a ? $(".ui-ceilinglamp").addClass("ui-ceilinglamp-current") : $(".ui-ceilinglamp").removeClass("ui-ceilinglamp-current").removeAttr("style")
        }).resize(function () {
            clearTimeout(b), b = setTimeout(function () {
                c = $(window).height()
            }, 500)
        })
    }
    $("#checkout-floatbar").length && b()
});
/* user-purchase/2.0.0 backpanel.js Date:2015-09-08 16:55:43 */
$(function () {
    function a() {}
    a.prototype = {
        constructor: a,
        init: function () {
            this.obj = $("#backpanel-inner");
            $("#backpanel-inner .bp-item-backtop").bind("click", function () {
                $("body,html").animate({
                    scrollTop: 0
                }, 500)
            }), b.scroll()
        }, scroll: function () {
            var a = this;
            var b = null;
            $(window).bind("scroll", function () {
                b && clearTimeout(b), b = setTimeout(function () {
                    var b = document.body.scrollTop || document.documentElement.scrollTop;
                    0 == b ? a.obj.removeClass("switchOn") : a.obj.addClass("switchOn")
                }, 200)
            }), a.initCss(), $(window).bind("resize", function () {
                a.initCss()
            })
        }, initCss: function () {
            var a, b = $("#backpanel").width(),
                c = document.documentElement.clientWidth;
            a = {
                right: (c - b) / 2 - 40
            }, this.obj.css(a)
        }, addCss: function (a) {
            this.obj.css(a)
        }, addItem: function (a) {
            this.obj.append(a)
        }
    };
    var b = new a;
    b.init()
});